public class ListArray<T>
{
	private T[] array;

	private int curIndex;

	public ListArray(int size)
	{
		CreateArray(size);
	}

	public void CreateArray(int size)
	{
		array = new T[size];
	}

	public void Add(T vector)
	{
		if (curIndex < array.Length)
		{
			array[curIndex] = vector;
			curIndex++;
		}
	}

	public void Clear()
	{
		curIndex = 0;
	}

	public T[] ToArray()
	{
		return array;
	}
}
